<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Shop_apply/index')}">列表</a></li>
    </ul>
    <form class=" well form-inline margin-top-20" method="get" action="{:url('Shop_apply/index')}">
        门店名称:
        <input type="text" class="form-control" name="name" style="width:150px;" value="{:input('name')}" placeholder="">
        联系人|联系电话:
        <input type="text" class="form-control" name="contacts" style="width:150px;" value="{:input('contacts')}" placeholder="">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('Shop_apply/index')}">清空</a>
    </form>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>ID</th>
            <th>门店名称</th>
            <th>logo</th>
            <th>门店地址</th>
            <th>门店类型</th>
            <th>联系电话</th>
            <th>营业执照</th>
            <th>状态</th>
            <th>申请时间</th>
            <th width="150">操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="lists" item="vo">
            <tr>
                <td>{$vo['id']}</td>
                <td>{$vo['name']}</td>
                <td>
                    <foreach name="vo.shop_out_image" item="v">
                    <a href="javascript:parent.imagePreviewDialog('{$v|cmf_get_image_url}');">
                        <i class="fa fa-photo fa-fw"></i>
                    </a>
                    </foreach>
                </td>
                <td>{$vo['address']}</td>
                <td>{$vo.category.title}</td>
                <td>{$vo['contacts_mobile']}</td>
                <td>
                    <foreach name="vo.business_license_image" item="v">
                    <a href="javascript:parent.imagePreviewDialog('{$v|cmf_get_image_url}');">
                        <i class="fa fa-photo fa-fw"></i>
                    </a>
                    </foreach>
                </td>
                <td>{$vo['status_text']}</td>
                <td>{$vo.create_time}</td>
                <td>
                    <a class="btn btn-xs btn-primary" href="javascript:parent.openIframeLayer('{:url('Shop_apply/detail',array('id'=>$vo['id']))}','详情',{area: ['70%', '80%']});">详情</a>
                </td>
            </tr>
        </foreach>        
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="/static/js/admin.js"></script>
<script src="/static/js/layer/layer.js"></script>
<script>

</script>
</body>
</html>
</body>
</html>